Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Latest commit

 

History

History
10 lines (7 loc) · 350 Bytes

16.19.11 - onMasterClose.md

File metadata and controls

10 lines (7 loc) · 350 Bytes

onMasterClose

当连接被关闭时,回调此函数。与onClose相同。onMasterConnect/onMasterClose都是在主进程中执行的。

void onMasterClose(resource $server, int $fd, int $from_id);

此回调函数中不要有阻塞操作,否则会导致服务器端无法及时Accept新的连接
1.7.5+此事件已被移除